package com.atguigu.ssyx;

import com.atguigu.ssyx.client.product.config.DefaultFeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置
@EnableDiscoveryClient//开启服务发现组件
//扫描ProductFeignClient接口所在包  还有其他FeignClient接口所在的包，比如ActivityFeignClient
@EnableFeignClients(basePackages = "com.atguigu.ssyx", defaultConfiguration = DefaultFeignConfig.class)
public class ServiceSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceSearchApplication.class, args);
    }

}